package pachong;

import java.util.List;

import weibo4j.Tags;
import weibo4j.model.Tag;
import weibo4j.model.WeiboException;

public class get_tag {

	/**
	 * @param args
	 * args[0] = acccess_token
	 * args[1] is the uid of the user who do you want to get the tag of.
	 * @return 
	 */
	public void solve(String[] args) {
		String access_token =args[0];
		Tags tm = new Tags();
		tm.client.setToken(access_token);
		List<Tag> tags = null;
		
		String uid =args[1];
		try {
			tags = tm.getTags(uid);
			for(Tag tag:tags ){				
				//Log.logInfo(tag.toString());
				System.out.println(tag.toString());
			}
		} catch (WeiboException e) {
			e.printStackTrace();
		}
	}

}
